<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-CN">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Hexo, NexT" />





  <link rel="alternate" href="/atom.xml" title="Likianta Blog" type="application/atom+xml" />






<meta name="description" content="该方法仅对部分情境进行了测试，实际应用可能存在很多缺陷，希望有大神给出更加好的方法。 代码如下： 12345var s = app.project.numItems; s = app.project.item(s).time;s = timeToCurrentFormat(s, 30);alert(s, &apos;alert dialog&apos;);">
<meta property="og:type" content="article">
<meta property="og:title" content="AE脚本获取当前预览时间的方法">
<meta property="og:url" content="https://likianta.coding.me/2018/0131-155946/index.html">
<meta property="og:site_name" content="Likianta Blog">
<meta property="og:description" content="该方法仅对部分情境进行了测试，实际应用可能存在很多缺陷，希望有大神给出更加好的方法。 代码如下： 12345var s = app.project.numItems; s = app.project.item(s).time;s = timeToCurrentFormat(s, 30);alert(s, &apos;alert dialog&apos;);">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://ozurciydg.bkt.clouddn.com/18-1-31/70024928.jpg">
<meta property="og:updated_time" content="2018-01-31T05:57:17.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="AE脚本获取当前预览时间的方法">
<meta name="twitter:description" content="该方法仅对部分情境进行了测试，实际应用可能存在很多缺陷，希望有大神给出更加好的方法。 代码如下： 12345var s = app.project.numItems; s = app.project.item(s).time;s = timeToCurrentFormat(s, 30);alert(s, &apos;alert dialog&apos;);">
<meta name="twitter:image" content="http://ozurciydg.bkt.clouddn.com/18-1-31/70024928.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://likianta.coding.me/2018/0131-155946/"/>





  <title>AE脚本获取当前预览时间的方法 | Likianta Blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Likianta Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tutorials">
          <a href="/tags/tutorial-catalog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            教程
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://likianta.coding.me/2018/0131-155946/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Likianta">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="http://ozurciydg.bkt.clouddn.com/18-2-12/72826549.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Likianta Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">AE脚本获取当前预览时间的方法</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-01-31T08:43:00+08:00">
                2018-01-31
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/adobe-extendscript/" itemprop="url" rel="index">
                    <span itemprop="name">Adobe脚本语言学习</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  931
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  4
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>该方法仅对部分情境进行了测试，实际应用可能存在很多缺陷，希望有大神给出更加好的方法。</p>
<p>代码如下：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> s = app.project.numItems; </span><br><span class="line">s = app.project.item(s).time;</span><br><span class="line">s = timeToCurrentFormat(s, <span class="number">30</span>);</span><br><span class="line"></span><br><span class="line">alert(s, <span class="string">'alert dialog'</span>);</span><br></pre></td></tr></table></figure>
<a id="more"></a>
<h1 id="表达式讲解"><a href="#表达式讲解" class="headerlink" title="表达式讲解"></a>表达式讲解</h1><p>1. 第一行<code>app.project.numItems</code>得到的是当前项目面板中的素材总数量（包括文件、文件夹）（背景知识见<a href="https://likianta.coding.me/2018/0130225017/">AE脚本 app.project.item(index) 讲解</a>）</p>
<p>2. 获得了素材总数量，假设该值为34，那么第二行的<code>app.project.item(s).time</code>就表示第34个素材（item）的当前时间值</p>
<p>为什么要取最后一个item的时间值呢？因为不同的item其时间值是不一样的。我的最后一个素材是视频文件，所以得到的时间值正好是当前预览时间值。比如我的时间线调在<code>0:00:30:02</code>这个位置，那么此时我获得的时间值就是<code>30.1134467801134</code>：</p>
<p><img src="http://ozurciydg.bkt.clouddn.com/18-1-31/70024928.jpg" alt=""></p>
<p>3. 显然上面这个时间值是不方便的，我们还要对它进行一次转制，转换表达式是一个全局通用的表达式，所以我们可以直接写<code>timeToCurrentFormat(s, 30)</code></p>
<p>第二个参数是帧率，表示“30fps”，这个值是我随便取的，所以可能与实际情况不符，改进方法详见文末。</p>
<p>4. 最后一行<code>alert(s, &#39;alert dialog&#39;);</code>就很简单了，只是弹出一个对话窗口，窗口标题为“alert dialog”，窗口内容为转码后的时间值（即本文中的<code>0:00:30:02</code>）</p>
<h1 id="该方法存在的缺陷"><a href="#该方法存在的缺陷" class="headerlink" title="该方法存在的缺陷"></a>该方法存在的缺陷</h1><ol>
<li>如果最后一个item不是视频，会导致时间值出错</li>
<li>该方法效率和稳定性都比较低</li>
<li>理论上应该有更简单稳定的方法来实现，希望有大神能够指点一下</li>
</ol>
<h1 id="一些改进"><a href="#一些改进" class="headerlink" title="一些改进"></a>一些改进</h1><h2 id="通过判断条件来准确地获得含有视频的合成项"><a href="#通过判断条件来准确地获得含有视频的合成项" class="headerlink" title="通过判断条件来准确地获得含有视频的合成项"></a>通过判断条件来准确地获得含有视频的合成项</h2><p>之前我们是用最后一个item来取时间值的，所以肯定有非常大的问题，为了保证我们获得的是一个视频item，可以利用一个判断条件：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> s = app.project.numItems; <span class="comment">// 获得项目面板的文件（及文件夹）总数</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// 通过遍历来得到视频item</span></span><br><span class="line"><span class="comment">// 为了节省时间，我选择从倒数第一个往前数</span></span><br><span class="line"><span class="keyword">for</span> (i = s; i &gt; <span class="number">0</span>; i--)&#123;</span><br><span class="line">    <span class="keyword">if</span> (app.project.item(i).hasVideo &amp;&amp; app.project.item(i).typeName == <span class="string">'合成'</span>) &#123;</span><br><span class="line">        <span class="comment">// 这个判断条件为：1. 该item必须含有视频；2. item的类型必须是“合成”而非“素材”或“文件夹”</span></span><br><span class="line">        s = app.project.item(i).time;</span><br><span class="line">        <span class="keyword">break</span>;</span><br><span class="line">    &#125; <span class="keyword">else</span> <span class="keyword">if</span> (i == <span class="number">1</span>) &#123;</span><br><span class="line">        <span class="comment">// 如果遍历不到的话，就会报视频缺失的错误</span></span><br><span class="line">        alert(<span class="string">"there is no video compItem found!"</span>, <span class="string">'warning'</span>);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h2 id="利用表达式获取当前视频的帧率"><a href="#利用表达式获取当前视频的帧率" class="headerlink" title="利用表达式获取当前视频的帧率"></a>利用表达式获取当前视频的帧率</h2><p>之前我们是随便取了一个值作为帧率，当该取值与实际视频帧率不符时，会导致时间码的末尾数字不相同。比如源素材的预览时间是<code>0:00:30:02</code>，而我们得到的会是<code>0:00:30:03</code>。</p>
<p>下面我们来获取当前视频的帧率并交给变量<code>x</code>持有。<strong>完整代码</strong>如下：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> s = app.project.numItems;</span><br><span class="line"><span class="keyword">for</span> (i = s; i &gt; <span class="number">0</span>; i--)&#123;</span><br><span class="line">    <span class="keyword">if</span> (app.project.item(i).hasVideo &amp;&amp; app.project.item(i).typeName == <span class="string">'合成'</span>) &#123;</span><br><span class="line">        s = app.project.item(i).time; <span class="comment">// 获取该合成视频的当前时间（其格式为“30.1134467801134”）</span></span><br><span class="line">        <span class="keyword">var</span> x = app.project.item(i).frameRate; <span class="comment">// 获取当前视频的帧速率</span></span><br><span class="line">        s = timeToCurrentFormat(s, x); <span class="comment">// 对时间进行转制并应用该帧速率</span></span><br><span class="line">        <span class="keyword">break</span>;</span><br><span class="line">    &#125; <span class="keyword">else</span> <span class="keyword">if</span> (i == <span class="number">1</span>) &#123;</span><br><span class="line">        alert(<span class="string">"there is no video found!"</span>, <span class="string">'warning'</span>);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">alert(s, <span class="string">'dialog'</span>);</span><br></pre></td></tr></table></figure>
<h1 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h1><p>After Effects CS6 Scripting Guide - p15, 32, 36, 120</p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
        <div class="post-widgets">
        

        

        
          
          <div id="needsharebutton-postbottom">
            <span class="btn">
              <i class="fa fa-share-alt" aria-hidden="true"></i>
            </span>
          </div>
        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/0131-173202/" rel="next" title="AE脚本UI界面制作之Listbox用法">
                <i class="fa fa-chevron-left"></i> AE脚本UI界面制作之Listbox用法
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/0131-160058/" rel="prev" title="AE脚本 app.project.item(index) 讲解">
                AE脚本 app.project.item(index) 讲解 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zNDI4MS8xMDgxOA=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://ozurciydg.bkt.clouddn.com/18-2-12/72826549.jpg"
                alt="Likianta" />
            
              <p class="site-author-name" itemprop="name">Likianta</p>
              <p class="site-description motion-element" itemprop="description">Android Dev</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">73</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="http://blog.csdn.net/likianta" target="_blank" title="CSDN">
                      
                        <i class="fa fa-fw fa-crosshairs"></i>CSDN</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:sheerish@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/likianta" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://weibo.com/5441767757/profile?rightmod=1&wvr=6&mod=personinfo" target="_blank" title="Weibo">
                      
                        <i class="fa fa-fw fa-weibo"></i>Weibo</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#表达式讲解"><span class="nav-text">表达式讲解</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#该方法存在的缺陷"><span class="nav-text">该方法存在的缺陷</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#一些改进"><span class="nav-text">一些改进</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#通过判断条件来准确地获得含有视频的合成项"><span class="nav-text">通过判断条件来准确地获得含有视频的合成项</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#利用表达式获取当前视频的帧率"><span class="nav-text">利用表达式获取当前视频的帧率</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#参考"><span class="nav-text">参考</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; 2017 &mdash; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Likianta</span>

  
</div>


  <div class="powered-by">
    <i class="fa fa-user-md"></i>
    <span id="busuanzi_container_site_pv">
      Site visitors:<span id="busuanzi_value_site_pv"></span>
    </span>
  </div>

<!--
  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Mist</a> v5.1.3</div>

-->



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">Site words total count:75.2k</span>
</div>
        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  





  

  

  

  
  
  
  <link rel="stylesheet" href="/lib/needsharebutton/needsharebutton.css">

  
  
  <script src="/lib/needsharebutton/needsharebutton.js"></script>

  <script>
    
      pbOptions = {};
      
          pbOptions.iconStyle = "box";
      
          pbOptions.boxForm = "horizontal";
      
          pbOptions.position = "bottomCenter";
      
          pbOptions.networks = "Weibo,Wechat,Douban,QQZone,Evernote";
      
      new needShareButton('#needsharebutton-postbottom', pbOptions);
    
    
  </script>

  

  

  

  

</body>
</html>
